home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 95
/
MOBICLIC 95.ISO
/
mac
/
MWB_DATA
/
TCH095
/
TCH095_02
/
tch095_02.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-06-28
|
2KB
|
89 lines
function joueSonTch(my_MC, lListeSons, lNomSon, lFaitAvancer)
{
lPosSon = getPos(lListeSons,lNomSon);
my_MC.gSonJoue = lPosSon;
my_MC.my_music.setVolume(10);
if(my_MC[_root.gLangue + "_my_comment_" + lPosSon] != undefined)
{
_root.dernierComment = my_MC[_root.gLangue + "_my_comment_" + lPosSon];
_root.gCommentOn = 1;
my_MC[_root.gLangue + "_my_comment_" + lPosSon].start();
if(lFaitAvancer === 1)
{
my_MC.gotoAndPlay(my_MC._currentframe + 1);
}
}
}
function stopComment(lComment)
{
_root.gCommentOn = 0;
lComment.stop();
}
function gereZones(lZone, lEtat)
{
lZoneNum = lZone.split("_")[1];
lType = lZone.split("_")[2];
if(_root.activeZone != 0)
{
if(lEtat == "load")
{
if(_root.activeZone === lZoneNum)
{
_root[lZone].useHandCursor = 0;
_root[lZone].gotoAndStop(2);
}
}
}
else
{
switch(lEtat)
{
case "load":
_root[lZone].gotoAndStop(1);
break;
case "roll":
if(_root.gOnDir)
{
getURL("6",280);
}
my_sound = new Sound();
my_sound.attachSound("B_" + lZoneNum + ".mp3");
my_sound.start();
_root[lZone].gotoAndStop(2);
break;
case "leave":
if(_root.gOnDir)
{
getURL("6",-1);
}
my_sound.stop();
_root[lZone].gotoAndStop(1);
break;
case "clic":
if(_root.gOnDir)
{
getURL("6",-1);
}
_root.typeZone = lType;
_root.activeZone = lZoneNum;
_root.gotoAndPlay("voc_" + lZoneNum);
}
}
}
gOnProd = 0;
gOnDir = 1;
gAllowFlags = 0;
gInterOk = 0;
if(gOnDir === 0)
{
gLangue = "AN";
}
gST = 1;
gFirstTime = 1;
gMusicOn = 0;
_root.sousTitre = 0;
gListColors = ["0x000000","0xFFFFFE","0xFFFF00","0x999900","0x66CC33","0x007700","0x6699FF","0x0000FF","0xFF0000","0xCC0000","0xCC9933","0x663333","0xFF00FF","0x990099"];
gListPolices = ["Arial","MattoSans-Bold","Comic Sans MS","Futura","Handwriting","Times","Papyrus","Fine Hand","AgrafieLL","L\'Olivier-Irregular","Textile","DoloresBold","SF Espionage Medium,Freehand591 BT"];
gListCorps = [9,10,12,14,18,24,36,48,72];
_root.activeZone = 0;